﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003FB RID: 1019
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DrinkMakerChallengeCsReq : IMessage<DrinkMakerChallengeCsReq>, IMessage, IEquatable<DrinkMakerChallengeCsReq>, IDeepCloneable<DrinkMakerChallengeCsReq>, IBufferMessage
	{
		// Token: 0x17000D12 RID: 3346
		// (get) Token: 0x06002DA2 RID: 11682 RVA: 0x0007DA99 File Offset: 0x0007BC99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DrinkMakerChallengeCsReq> Parser
		{
			get
			{
				return DrinkMakerChallengeCsReq._parser;
			}
		}

		// Token: 0x17000D13 RID: 3347
		// (get) Token: 0x06002DA3 RID: 11683 RVA: 0x0007DAA0 File Offset: 0x0007BCA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DrinkMakerChallengeCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000D14 RID: 3348
		// (get) Token: 0x06002DA4 RID: 11684 RVA: 0x0007DAB2 File Offset: 0x0007BCB2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DrinkMakerChallengeCsReq.Descriptor;
			}
		}

		// Token: 0x06002DA5 RID: 11685 RVA: 0x0007DAB9 File Offset: 0x0007BCB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DrinkMakerChallengeCsReq()
		{
		}

		// Token: 0x06002DA6 RID: 11686 RVA: 0x0007DAC4 File Offset: 0x0007BCC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DrinkMakerChallengeCsReq(DrinkMakerChallengeCsReq other) : this()
		{
			this.cMBKNELNFEM_ = ((other.cMBKNELNFEM_ != null) ? other.cMBKNELNFEM_.Clone() : null);
			this.challengeId_ = other.challengeId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002DA7 RID: 11687 RVA: 0x0007DB10 File Offset: 0x0007BD10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DrinkMakerChallengeCsReq Clone()
		{
			return new DrinkMakerChallengeCsReq(this);
		}

		// Token: 0x17000D15 RID: 3349
		// (get) Token: 0x06002DA8 RID: 11688 RVA: 0x0007DB18 File Offset: 0x0007BD18
		// (set) Token: 0x06002DA9 RID: 11689 RVA: 0x0007DB20 File Offset: 0x0007BD20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PNLHADCBNMN CMBKNELNFEM
		{
			get
			{
				return this.cMBKNELNFEM_;
			}
			set
			{
				this.cMBKNELNFEM_ = value;
			}
		}

		// Token: 0x17000D16 RID: 3350
		// (get) Token: 0x06002DAA RID: 11690 RVA: 0x0007DB29 File Offset: 0x0007BD29
		// (set) Token: 0x06002DAB RID: 11691 RVA: 0x0007DB31 File Offset: 0x0007BD31
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeId
		{
			get
			{
				return this.challengeId_;
			}
			set
			{
				this.challengeId_ = value;
			}
		}

		// Token: 0x06002DAC RID: 11692 RVA: 0x0007DB3A File Offset: 0x0007BD3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DrinkMakerChallengeCsReq);
		}

		// Token: 0x06002DAD RID: 11693 RVA: 0x0007DB48 File Offset: 0x0007BD48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DrinkMakerChallengeCsReq other)
		{
			return other != null && (other == this || (object.Equals(this.CMBKNELNFEM, other.CMBKNELNFEM) && this.ChallengeId == other.ChallengeId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002DAE RID: 11694 RVA: 0x0007DB98 File Offset: 0x0007BD98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.cMBKNELNFEM_ != null)
			{
				num ^= this.CMBKNELNFEM.GetHashCode();
			}
			if (this.ChallengeId != 0U)
			{
				num ^= this.ChallengeId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002DAF RID: 11695 RVA: 0x0007DBED File Offset: 0x0007BDED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002DB0 RID: 11696 RVA: 0x0007DBF5 File Offset: 0x0007BDF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002DB1 RID: 11697 RVA: 0x0007DC00 File Offset: 0x0007BE00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ChallengeId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.ChallengeId);
			}
			if (this.cMBKNELNFEM_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.CMBKNELNFEM);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002DB2 RID: 11698 RVA: 0x0007DC5C File Offset: 0x0007BE5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.cMBKNELNFEM_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CMBKNELNFEM);
			}
			if (this.ChallengeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002DB3 RID: 11699 RVA: 0x0007DCB4 File Offset: 0x0007BEB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DrinkMakerChallengeCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.cMBKNELNFEM_ != null)
			{
				if (this.cMBKNELNFEM_ == null)
				{
					this.CMBKNELNFEM = new PNLHADCBNMN();
				}
				this.CMBKNELNFEM.MergeFrom(other.CMBKNELNFEM);
			}
			if (other.ChallengeId != 0U)
			{
				this.ChallengeId = other.ChallengeId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002DB4 RID: 11700 RVA: 0x0007DD1C File Offset: 0x0007BF1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002DB5 RID: 11701 RVA: 0x0007DD28 File Offset: 0x0007BF28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 26U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.cMBKNELNFEM_ == null)
						{
							this.CMBKNELNFEM = new PNLHADCBNMN();
						}
						input.ReadMessage(this.CMBKNELNFEM);
					}
				}
				else
				{
					this.ChallengeId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400120B RID: 4619
		private static readonly MessageParser<DrinkMakerChallengeCsReq> _parser = new MessageParser<DrinkMakerChallengeCsReq>(() => new DrinkMakerChallengeCsReq());

		// Token: 0x0400120C RID: 4620
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400120D RID: 4621
		public const int CMBKNELNFEMFieldNumber = 3;

		// Token: 0x0400120E RID: 4622
		private PNLHADCBNMN cMBKNELNFEM_;

		// Token: 0x0400120F RID: 4623
		public const int ChallengeIdFieldNumber = 2;

		// Token: 0x04001210 RID: 4624
		private uint challengeId_;
	}
}
